<h1>Welcome to the Edit Menu</h1>

<center>
    <% if(@customization) %>
        <%= image_tag("#{@customization.image}", :align => "right")%>
                                                
       <%= form_for(:customization, :url => { :action => "edit_update", 
                                              :id => @customization.id } ) do |f| %>   
                                      
                <%= render(:partial => "options", :locals => {:f => f})%>
                <br />
                <br />
                
                <div class="form-buttons">
                    <%= submit_tag("Preview") %></td>
                    
                </div>
        <%end%>
    <%else%>
        <%= javascript_tag("empty_upload_path_error();")%>
    <%end%>
</center>
<br />
<br />
<% if(@customization)%>
        <%= render(:partial => "edit_menu_next")%>
   <%else%>
        <%= javascript_tag("empty_upload_path_error();")%>
<%end%>
<%= link_to("<< Best Fit", {:controller => "customizations", 
                                    :action => "best_fit", :template => "customizations/best_fit"}, :class => "back-link")%>
<br />
<br />
<%= link_to("<< Browse", {:controller => "customizations", 
                                    :action => "browse", :template => "customizations/browse"}, 
                                    :class => "back-link")%>
                         
<br />
<br />
<%= debug(@customization) %>
<br />
<br />
<%= params.inspect %>